#include "gtkstyleproviderprivate.h"
#include "gtkintl.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef struct StylePropertyValue StylePropertyValue;
struct _GtkModifierStylePrivate
GdkColor color;
gchar *str;
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-
/* Reject non-color types for now */
if (pspec->value_type != GDK_TYPE_COLOR)
return FALSE;
-G_GNUC_END_IGNORE_DEPRECATIONS
-
priv = GTK_MODIFIER_STYLE (provider)->priv;
str = g_strdup_printf ("-%s-%s",
g_type_name (pspec->owner_type),
priv = style->priv;
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-
if (color)
symbolic_color = gtk_symbolic_color_new_literal (color);
gtk_style_properties_map_color (priv->style,
name, symbolic_color);
- G_GNUC_END_IGNORE_DEPRECATIONS;
-
_gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style));
}
_gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (style));
}
+
+G_GNUC_END_IGNORE_DEPRECATIONS
#include "deprecated/gtkgradient.h"
#include "deprecated/gtksymboliccolorprivate.h"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
/**
* SECTION:gtkstyleproperties
* @Short_description: Store for style property information
* and its variants are the preferred way to access styling information
* from widget implementations and theming engine implementations
* should use the APIs provided by #GtkThemingEngine instead.
+ *
+ * #GtkStyleProperties has been deprecated in GTK 3.16. The CSS
+ * machinery does not use it anymore and all users of this object
+ * have been deprecated.
*/
typedef struct PropertyData PropertyData;
{
GtkSymbolicColor *symbolic;
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-
symbolic = gtk_style_properties_lookup_color (GTK_STYLE_PROPERTIES (provider), name);
if (symbolic == NULL)
return NULL;
return _gtk_symbolic_color_get_css_value (symbolic);
-
- G_GNUC_END_IGNORE_DEPRECATIONS;
}
static void
* Returns a newly created #GtkStyleProperties
*
* Returns: a new #GtkStyleProperties
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
GtkStyleProperties *
gtk_style_properties_new (void)
priv = props->priv;
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-
if (G_UNLIKELY (!priv->color_map))
priv->color_map = g_hash_table_new_full (g_str_hash,
g_str_equal,
g_strdup (name),
gtk_symbolic_color_ref (color));
- G_GNUC_END_IGNORE_DEPRECATIONS;
-
_gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (props));
}
* Sets a styling property in @props.
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_set_property (GtkStyleProperties *props,
* Sets several style properties on @props.
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_set_valist (GtkStyleProperties *props,
* Sets several style properties on @props.
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_set (GtkStyleProperties *props,
* Returns: %TRUE if the property exists in @props, %FALSE otherwise
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
gboolean
gtk_style_properties_get_property (GtkStyleProperties *props,
* Retrieves several style property values from @props for a given state.
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_get_valist (GtkStyleProperties *props,
* given state.
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_get (GtkStyleProperties *props,
* Unsets a style property in @props.
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_unset_property (GtkStyleProperties *props,
* @props: a #GtkStyleProperties
*
* Clears all style information from @props.
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_clear (GtkStyleProperties *props)
* will prevail.
*
* Since: 3.0
+ *
+ * Deprecated: 3.16: #GtkStyleProperties are deprecated.
**/
void
gtk_style_properties_merge (GtkStyleProperties *props,
g_hash_table_lookup (priv->color_map, name))
continue;
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_style_properties_map_color (props, name, color);
- G_GNUC_END_IGNORE_DEPRECATIONS;
}
}
_gtk_style_provider_private_changed (GTK_STYLE_PROVIDER_PRIVATE (props));
}
+
+G_GNUC_END_IGNORE_DEPRECATIONS;
GValue *value,
GError **error);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
GType gtk_style_properties_get_type (void) G_GNUC_CONST;
/* Next 2 are implemented in gtkcsscustomproperty.c */
GtkStylePropertyParser *parse_func,
GParamSpec **pspec);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
GtkStyleProperties * gtk_style_properties_new (void);
GDK_DEPRECATED_IN_3_8
GtkSymbolicColor * gtk_style_properties_lookup_color (GtkStyleProperties *props,
const gchar *name);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_set_property (GtkStyleProperties *props,
const gchar *property,
GtkStateFlags state,
const GValue *value);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_set_valist (GtkStyleProperties *props,
GtkStateFlags state,
va_list args);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_set (GtkStyleProperties *props,
GtkStateFlags state,
...) G_GNUC_NULL_TERMINATED;
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
gboolean gtk_style_properties_get_property (GtkStyleProperties *props,
const gchar *property,
GtkStateFlags state,
GValue *value);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_get_valist (GtkStyleProperties *props,
GtkStateFlags state,
va_list args);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_get (GtkStyleProperties *props,
GtkStateFlags state,
...) G_GNUC_NULL_TERMINATED;
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_unset_property (GtkStyleProperties *props,
const gchar *property,
GtkStateFlags state);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_clear (GtkStyleProperties *props);
-GDK_AVAILABLE_IN_ALL
+GDK_DEPRECATED_IN_3_16
void gtk_style_properties_merge (GtkStyleProperties *props,
const GtkStyleProperties *props_to_merge,
gboolean replace);